package com.jin.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jin.entity.OrderMaster;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 订单主表 Mapper 接口
 * </p>
 *
 * @author JJ LIU
 * @since 2021-07-21
 */
@Repository
public interface OrderMasterMapper extends BaseMapper<OrderMaster> {

    @Select("SELECT * FROM order_master ${ew.customSqlSegment}")
    IPage<OrderMaster> findByBuyerOpenid(Page<OrderMaster> page, @Param(Constants.WRAPPER) Wrapper<OrderMaster> userWrapper);

}
